package actions.commandsmap.commands

import actions.Action

class TypeCommand implements Command {

    String text
    String fieldName

    TypeCommand(String text, String fieldName) {
        this.text = text
        this.fieldName = fieldName
    }

    String getCommand() {
        return Action.typeCommand(text, fieldName, fieldName.equalsIgnoreCase("time"))
    }
}
